package com.vogue.family.data.entity;

import java.io.Serializable;

/**
 * 访问令牌
 */
public class AccessToken implements Serializable {

    private String accessToken;
    private String refreshToken;
    private String expiresIn;
    private String tokenType;

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public String getRefreshToken() {
        return refreshToken;
    }

    public void setRefreshToken(String refreshToken) {
        this.refreshToken = refreshToken;
    }

    public String getExpiresIn() {
        return expiresIn;
    }

    public void setExpiresIn(String expiresIn) {
        this.expiresIn = expiresIn;
    }

    public String getTokenType() {
        return tokenType;
    }

    public void setTokenType(String tokenType) {
        this.tokenType = tokenType;
    }

    public String bearer() {
        return String.format("bearer %s", this.getAccessToken());
    }


}
